package com.itheima.chapter203.mapper;

import com.itheima.chapter203.domain.Comment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommentMapper {
    /** 根据id查找Comment */
    Comment selectCommentById(Integer id);
    /** 根据条件查找Comment列表 */
    List<Comment> selectCommentList(Comment comment);
    /** 根据文章id查找Comment列表 */
    List<Comment> selectCommentListByArticleId(Integer aId);
    /** 插入Comment */
    int insertComment(Comment comment);
    /** 修改Comment */
    int updateComment(Comment comment);
    /** 删除Comment */
    int deleteComment(Integer id);
}
